﻿<phone:PhoneApplicationPage 
    x:Class="AACalc.GalleryPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Primitives"
    xmlns:system="clr-namespace:System;assembly=mscorlib"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="800" d:DesignWidth="480"
    shell:SystemTray.IsVisible="False">
    
    <UserControl.Resources>
        <DataTemplate x:Key="CustomHubTileTemplate">
            <Grid>
                <Rectangle Fill="Gray"/>
            </Grid>
        </DataTemplate>
        <DataTemplate x:Key="SlideHubTileBackTemplate">
            <Grid>
                <Rectangle Fill="Gray"/>
            </Grid>
        </DataTemplate>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="APP TITLE" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="page title" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}"/>
        </StackPanel>

        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <ScrollViewer>
                <Grid Margin="6,0" VerticalAlignment="Top">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="111"/>
                        <RowDefinition Height="111"/>
                        <RowDefinition Height="111"/>
                        <RowDefinition Height="111"/>
						<RowDefinition Height="*"/>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="111"/>
                        <ColumnDefinition Width="111"/>
                        <ColumnDefinition Width="111"/>
                        <ColumnDefinition Width="111"/>
                    </Grid.ColumnDefinitions>
                    <telerikPrimitives:RadSlideHubTile x:Name="recentSheet" Grid.ColumnSpan="2" Grid.RowSpan="2" Width="210" Height="210" Title="recent" Tap="RadSlideHubTile_Tap_1">
                        <telerikPrimitives:RadSlideHubTile.Picture>
                            <Image Source="Images\HubTileImage.png"
                                Stretch="UniformToFill"/>
                        </telerikPrimitives:RadSlideHubTile.Picture>
                    </telerikPrimitives:RadSlideHubTile>
                    <telerikPrimitives:RadCustomHubTile x:Name="newSheet" Grid.Column="3" Grid.Row="1" Width="99" Height="99">
                        <telerikPrimitives:RadCustomHubTile.FrontContent>
                            <Image Source="Images\HubTileImage.png"
                                Stretch="UniformToFill"/>
                        </telerikPrimitives:RadCustomHubTile.FrontContent>
                    </telerikPrimitives:RadCustomHubTile>
                    <telerikPrimitives:RadCustomHubTile x:Name="recentSheet1" Grid.Column="3" Width="99" Height="99" FrontContentTemplate="{StaticResource CustomHubTileTemplate}"/>
                    <telerikPrimitives:RadCustomHubTile x:Name="recentSheet2" Grid.Column="2" Width="99" Height="99" Grid.Row="1" FrontContentTemplate="{StaticResource CustomHubTileTemplate}"/>
                    <telerikPrimitives:RadCustomHubTile x:Name="recentSheet0" Grid.Column="2" Width="99" Height="99" Grid.Row="0" FrontContentTemplate="{StaticResource CustomHubTileTemplate}"/>
                    <telerikPrimitives:RadCustomHubTile Grid.Row="2" Width="99" Height="99" FrontContentTemplate="{StaticResource CustomHubTileTemplate}"/>
                    <telerikPrimitives:RadCustomHubTile Grid.Column="1" Width="99" Height="99" Grid.Row="2" FrontContentTemplate="{StaticResource CustomHubTileTemplate}"/>
                    <telerikPrimitives:RadCustomHubTile Grid.Column="2" Width="99" Height="99" Grid.Row="2" FrontContentTemplate="{StaticResource CustomHubTileTemplate}"/>
                    <telerikPrimitives:RadCustomHubTile Grid.Column="3" Width="99" Height="99" Grid.Row="2" FrontContentTemplate="{StaticResource CustomHubTileTemplate}"/>
                    <telerikPrimitives:RadCustomHubTile Grid.Row="3" Width="99" Height="99" FrontContentTemplate="{StaticResource CustomHubTileTemplate}"/>
                    <telerikPrimitives:RadCustomHubTile Grid.Column="1" Width="99" Height="99" Grid.Row="3" FrontContentTemplate="{StaticResource CustomHubTileTemplate}"/>
                    <telerikPrimitives:RadCustomHubTile Grid.ColumnSpan="2" Grid.RowSpan="1" Grid.Column="2" Grid.Row="3" Width="210" Height="99">
                        <telerikPrimitives:RadCustomHubTile.FrontContent>
                            <Image Source="Images\HubTileImage.png"
                                Stretch="UniformToFill"/>
                        </telerikPrimitives:RadCustomHubTile.FrontContent>
                    </telerikPrimitives:RadCustomHubTile>
                </Grid>
            </ScrollViewer>
        </Grid>
    </Grid>

    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button3.png" Text="Button 3"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button4.png" Text="Button 4"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
